package cheme.ProcessModel.Cmds;

import org.eclipse.gef.commands.Command;

import cheme.ProcessModel.IModelElement;

public abstract class ChemeActionCommand extends Command
{
	protected IModelElement source = null;
	
	public ChemeActionCommand(Object source)
	{
		this(source, "");
	}
	
	public ChemeActionCommand(Object source, String label)
	{
		super(label);
		setSource((IModelElement)source);
	}

	public IModelElement getSource()
	{
		return source;
	}

	public void setSource(IModelElement source)
	{
		this.source = source;
	}

	public abstract void execute();
	public abstract void undo();
}
